import {Form, Input} from "antd";

const Item = Form.Item
const AddForm = ({setForm}) => {

    return(
        <Form validateTrigger="onSubmit">
            <Item label={"角色名称"}
                  name="roleName"
                  rules={[{required: true, message: '请输入角色名称'}]}
            >
                <Input placeholder={"请输入角色名称"} onChange={(e) => setForm(e.target.value)}></Input>
            </Item>
        </Form>
    )
}

export default AddForm;